<div class="selection">
  <span>Selection：</span>
  <ng-container *ngIf="!selection?.length">none</ng-container>
  <ng-container *ngFor="let item of selection">
    <span>{{ item.label }}</span>
  </ng-container>
  <a *ngIf="selection?.length" (click)="clearSelection()">Clear</a>
</div>

<div class="tree-container">
  <lv-tree
    #tree
    [lvData]="data"
    lvShowCheckbox
    lvSelectionMode="multiple"
    [(lvSelection)]="selection"
    [lvShowExpandedIcon]="{ expandIcon: 'lv-icon-arrow-down', collapseIcon: 'lv-icon-arrow-right' }"
    (lvSelectionChange)="selectionChange($event)"
  ></lv-tree>
</div>
